package cn.bugstack.service;


import cn.bugstack.domain.Req.ShopCartReq;
import cn.bugstack.domain.res.PayOrderRes;
import cn.bugstack.domain.vo.RecordingVO;

import java.util.List;

/**
 * 订单服务接口
 */
public interface IOrderService {
    PayOrderRes createOrder(ShopCartReq shopCartReq) throws Exception;

    void changeOrderPaySuccess(String orderId);

    List<String> queryNoPayNotifyOrder();

    List<String> queryTimeoutCloseOrderList();

    boolean changeOrderClose(String orderId);


    /**
     * 根据用户id查询购买记录
     */
    List<RecordingVO> queryHistoryOrder(String userId);


    boolean deleteOrder(String userId, String orderId);
}
